package cn.sfrog.project.biz.admin.enums;



public enum BizSureMoneyStatusEnum {

    /**
     * 已支付
     */
    PAID("1", "已支付"),
    /**
     * 退款中
     */
    REFUNDING("2", "退款中"),
    /**
     * 已退回
     */
    RETURNED("3", "已退回");

    private String code;
    private String name;


    BizSureMoneyStatusEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }

    public static BizSureMoneyStatusEnum getInstance(String code) {
        BizSureMoneyStatusEnum[] values = values();
        for (BizSureMoneyStatusEnum sureMoneyStatusEnum : values) {
            if (sureMoneyStatusEnum.code.equals(code)) {
                return sureMoneyStatusEnum;
            }
        }
        return null;
    }
}
